package alf.mapping.dto.maps;
import android.graphics.Rect;
import java.util.List;
import java.util.ArrayList;

public class Item{
	private String name,type,text;
	
	private List<Link> links;
	
	Rect rect = new Rect(0, 0, 0, 0);

	public void add(Link link){
		if (links==null) {
			links = new ArrayList<Link>();
		}
		links.add(link);
	}
	
	public void setLinks(List<Link> links) {
		this.links = links;
	}

	public List<Link> getLinks() {
		return links;
	}
	
	public void setRect(Rect rect) {
		this.rect = rect;
	}

	public Rect getRect() {
		return rect;
	}
	public String toString() {
		return name + "[" + type + "]" + rect.toString();
	}

	public void setText(String text) {
		this.text = text;
	}

	public String getText() {
		return text;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getType() {
		return type;
	}
	
	public String getName() {
		return this.name;
	}
	public void setName(String name) {
		this.name = name;
	}
}
